import request from '@/utils/request'

/**
 * 
 * @param {获取车辆信息} data 
 * @returns 
 */

export function getCarInfo(data) {
  return request({
    url: '/map/car',
    method: 'post',
    data
  })
}

/**
 * 
 * @param {获取gps信息} data 
 * @returns 
 */

 export function getGpsInfo(data) {
  return request({
    url: '/map/gpsinfo',
    method: 'post',
    data
  })
}

/**
 * 
 * @param {获取关键字搜索信息} data 
 * @returns 
 */

 export function getKeyFontInfo(data) {
  return request({
    url: '/map/searchkeyword',
    method: 'post',
    data
  })
}

/**
 * 
 * @param {获取搜索路线} data 
 * @returns 
 */

 export function getSearchLineInfo(data) {
  return request({
    url: '/map/searchline',
    method: 'post',
    data
  })
}

/**
 * 
 * @param {获取GPS记录} data 
 * @returns 
 */

 export function getGpsrecord(data) {
  return request({
    url: '/map/gpsrecord',
    method: 'post',
    data
  })
}